revDays={}

for i,v in ipairs(days) do
revDays[v]=i

end
